home *** CD-ROM | disk | FTP | other *** search
- --- ./gtk/gtkrc.c Mon May 10 22:31:09 1999
- +++ ../gtk+-1.2.3/./gtk/gtkrc.c Mon May 17 14:10:23 1999
- @@ -39,6 +39,17 @@
- #include "gtkthemes.h"
- #include "gtkintl.h"
-
- +#define ABILIB "lib"
- +#ifdef _MIPS_SIM
- +# if (_MIPS_SIM == _MIPS_SIM_NABI32)
- +# undef ABILIB
- +# define ABILIB "lib32"
- +# elif (_MIPS_SIM == _MIPS_SIM_ABI64)
- +# undef ABILIB
- +# define ABILIB "lib64"
- +# endif
- +#endif
- +
- typedef struct _GtkRcSet GtkRcSet;
- typedef struct _GtkRcNode GtkRcNode;
- typedef struct _GtkRcFile GtkRcFile;
- @@ -231,9 +242,9 @@
-
- var = getenv("GTK_EXE_PREFIX");
- if (var)
- - path = g_strdup_printf("%s%s", var, "/lib/gtk/themes/engines");
- + path = g_strdup_printf("%s%s", var, "/" ABILIB "/gtk/themes/engines");
- else
- - path = g_strdup_printf("%s%s", GTK_EXE_PREFIX, "/lib/gtk/themes/engines");
- + path = g_strdup_printf("%s%s", GTK_EXE_PREFIX, "/" ABILIB "/gtk/themes/engines");
-
- return path;
- }
- @@ -282,18 +293,21 @@
-
- var = getenv("GTK_EXE_PREFIX");
- if (var)
- - path = g_strdup_printf("%s%s", var, "/lib/gtk/themes/engines");
- + path = g_strdup_printf("%s%s", var, "/" ABILIB "/gtk/themes/engines");
- else
- - path = g_strdup_printf("%s%s", GTK_EXE_PREFIX, "/lib/gtk/themes/engines");
- + path = g_strdup_printf("%s%s", GTK_EXE_PREFIX, "/" ABILIB "/gtk/themes/engines");
- module_path[n++] = g_strdup(path);
- g_free(path);
-
- var = g_get_home_dir ();
- if (var)
- - path = g_strdup_printf("%s%s", var, "/.gtk/lib/themes/engines");
- - module_path[n++] = g_strdup(path);
- + {
- + path = g_strdup_printf("%s%s", var, "/.gtk/" ABILIB "/themes/engines");
- + module_path[n++] = g_strdup(path);
- + g_free(path);
- + }
- +
- module_path[n] = NULL;
- - g_free(path);
- }
-
- static void
-